<div class="well sidebar-nav">
    <ul class="nav nav-list">
        <li class="nav-header">Tags:{{tag_id}}</li>
        {% for k,t in pairs(tags) do%}
        <li {% if t['id']==tag_id then%} class="active"{%end%}><a href="{{helper:url('index',{['tag_id']=t['id']})}}">{{t['tag_name']}}<span class="badge" style="float:right">{{t['num']}}</span></a></li>
        {%end%}
        {% if links then %}
        <li class="nav-header">链接:</li>
        {% for k,t in pairs(links) do%}
        <li><a target="_blank" href="{{t['link']}}">{{t['name']}}</a></li>
        {%end%}
        {%end%}                      
    </ul>
</div>
